<?php
class photo_control extends SClass {

    public function process() {

        try {
            $photoalbumid = $this->getArgument('id');
            $fotoEditBlock = Engine::GetContentDriver()->getContent('foto-edit-block');
            $fotoEditBlock->setValue('key', 'photoalbum');
            $fotoEditBlock->setValue('objectid', $photoalbumid);
            $this->setValue('fotoEditBlock', $fotoEditBlock->render());
        } catch (Exeption $e) {

        }

    }

}